package com.hubiao.pro.controller;

import com.hubiao.pro.service.RedisStringService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Description
 *
 * @author hubiao
 * @since 2021-01-29 14:29
 */
@RestController
@RequestMapping("/str")
public class RedisStringController {

    @Resource
    private RedisStringService redisStringService;


    /**
     * 计数器
     */
    @GetMapping("/counter")
    public void counterExample() {
        redisStringService.incr();
    }
}
